import Vue from 'vue'
// import { Menu, Layout, Icon } from 'ant-design-vue'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import timeline from './timeline.vue'
import tree from './VTree/Tree.vue'
import calendar from './calendar.vue'

// Vue.use(Menu)
// Vue.use(Layout)
// Vue.use(Icon)
Vue.use(Antd)

const components = {
  timeline,
  tree,
  calendar
}

const myvue = {
  install(Vue) {
    Object.keys(components).forEach(item => Vue.component(components[item].name, components[item]))
  },
  ...components
}
Vue.use(myvue)
export default myvue
